std::type_index
From Cppreference
| C++ Standard Library | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Utilities library | ||||||||||||||||||||||||||||
| Type support | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
| std::type_index | ||||||||||||||||||||||||||||
| Defined in header <type_index>
| ||
| class type_index;
| (C++11 feature) | |
The type_index class is a wrapper class around a type_info object, that can be used as index in associative and unordered associative containers. The relationship with type_info object is maintained through a pointer, therefore type_index can be copy-constructed and copy-assigned.
| constructs the object (public member function) | |
| compares the underlying type_info objects (public member function) | |
| returns hashed code (public member function) | |
| returns implementation defined name of the type, associated with underlying type_info object (public member function) | |
| This section is incomplete Reason: hash support |